from api.toshop_register_v_Api import TpV


class TpReg:
    @classmethod
    def tp_reg(cls, res_data):
        url_reg = "http://tpshop-test.itheima.net/Home/User/reg.html"
        se = TpV.tp_v()
        res = se.post(url_reg, data=res_data)
        se.close()
        return res

